package com.baitai.system.domain;

import java.util.Date;

import com.baitai.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baitai.common.annotation.Excel;

/**
 * zcyx备用用户
 * 对象 sys_user_zcyx
 *
 * @author xx
 * @date 2024-12-13
 */
public class SysUserZcyx extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 用户源父级
     */
    @Excel(name = "用户源父级")
    private Long sourceParentid;

    /**
     * 用户源上下级
     */
    @Excel(name = "用户源上下级")
    private String sourceAncestor;

    /**
     * 用户现父级id
     */
    @Excel(name = "用户现父级id")
    private Long parentId;

    /**
     * 用户现上下级
     */
    @Excel(name = "用户现上下级")
    private String ancestor;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updataTime;

    /**
     * 是否更新
     */
    @Excel(name = "是否更新")
    private Integer isupload;

    /**
     * 备注包几
     */
    @Excel(name = "备注包几")
    private String notes;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSourceParentid(Long sourceParentid) {
        this.sourceParentid = sourceParentid;
    }

    public Long getSourceParentid() {
        return sourceParentid;
    }

    public void setSourceAncestor(String sourceAncestor) {
        this.sourceAncestor = sourceAncestor;
    }

    public String getSourceAncestor() {
        return sourceAncestor;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setAncestor(String ancestor) {
        this.ancestor = ancestor;
    }

    public String getAncestor() {
        return ancestor;
    }

    public void setUpdataTime(Date updataTime) {
        this.updataTime = updataTime;
    }

    public Date getUpdataTime() {
        return updataTime;
    }

    public void setIsupload(Integer isupload) {
        this.isupload = isupload;
    }

    public Integer getIsupload() {
        return isupload;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getNotes() {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("sourceParentid", getSourceParentid())
                .append("sourceAncestor", getSourceAncestor())
                .append("parentId", getParentId())
                .append("ancestor", getAncestor())
                .append("updataTime", getUpdataTime())
                .append("isupload", getIsupload())
                .append("notes", getNotes())
                .toString();
    }
}
